package ${packageName}.entity;

<#list tableInfo.classImports as classImport>
import ${classImport};
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;
</#list>

/**
 * ${tableInfo.tableRemark}
 */
public class ${tableInfo.getTableClassName()} implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	 /***/
    @SuppressWarnings("unused")
	private String idStr;
	
<#list tableInfo.tableColumns as columnInfo>
    /**${columnInfo.remark}*/
    <#if columnInfo.javaType=="Date">
     @JSONField(format = "yyyy-MM-dd HH:mm:ss")
     private ${columnInfo.javaType} ${columnInfo.javaName};
     <#else>
     private ${columnInfo.javaType} ${columnInfo.javaName};
    </#if>
    
</#list>

<#list tableInfo.tableColumns as columnInfo>

    public ${columnInfo.javaType} get${columnInfo.javaName?cap_first}() {
        return ${columnInfo.javaName};
    }

    public void set${columnInfo.javaName?cap_first}(${columnInfo.javaType} ${columnInfo.javaName}) {
        this.${columnInfo.javaName} = ${columnInfo.javaName};
    }
</#list>

	public String getIdStr() {
		return this.id.toString();
	}
}